package com.gp.ssmplus.business.handler;

import com.gp.ssmplus.base.core.mybatis.entity.EntityMap;
import com.gp.ssmplus.base.core.mybatis.interceptor.PageInterceptor;
import com.gp.ssmplus.base.core.mybatis.model.PageModel;
import com.gp.ssmplus.base.core.mybatis.query.CriteriaQuery;
import com.gp.ssmplus.business.service.GpAccountService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component("gpAccountPageListHandler")
@Log4j2
public class GpAccountPageListHandler implements PageInterceptor {

    @Autowired
    private GpAccountService gpAccountService;

    @Override
    public void prepare(CriteriaQuery cq, PageModel model, EntityMap params) {
        System.out.println("进入list拦截器1");
    }

    @Override
    public void complete(CriteriaQuery cq, List<EntityMap> result, EntityMap extra) {
        System.out.println("进入list拦截器2");

    }
}
